﻿using System;

namespace Netbits.Common.Network
{
	/// <summary>
	/// Represents a receive object for specified session-object
	/// </summary>
	public class TcpServerSessionReceive
	{
		#region Private Variables

		/// <summary>
		/// Represent session object
		/// </summary>
		public TcpServerSession Session;
		/// <summary>
		/// Represent receive buffer
		/// </summary>
		public byte[] Buffer;
		/// <summary>
		/// Represent received bytes.
		/// </summary>
		public int BufferSize;

		#endregion

		#region Constructors

		/// <summary>
		/// Create new instance of TcpServerSessionReceive with specified parameters
		/// </summary>
		/// <param name="Session_">Session instance</param>
		/// <param name="Buffer_">Received buffer</param>
		/// <param name="BufferSize_">Size of received bytes</param>
		public TcpServerSessionReceive( TcpServerSession Session_, byte[] Buffer_, int BufferSize_ )
		{
			Session = Session_;
			Buffer = Buffer_;
			BufferSize = BufferSize_;
		}

		#endregion
	}
}
